html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

button {
  border: none;
  outline: none;
  background-color: transparent;
  border-radius: 8px;
  &:active {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

input {
  outline: none;
  border: none;
}

* {
  font-size: 14px;
  font-family: Arial, "微软雅黑";
}

.bk-image {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
}

.ui-container {
  color: #f2f2f2;
  width: 100%;
  box-sizing: border-box;
  background-color: #ee3e1c;
  padding: 20px;

  .ui-content {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 10px;
    &:last-child {
      margin-bottom: 0;
    }

    & > * {
      margin-bottom: 10px;
      &:last-child {
        margin-bottom: 0;
      }
    }

    .ui-recent-list {
      display: flex;
      flex-direction: row;
      width: 100%;

      height: 18px;

      .icon {
        width: 18px;
        height: 18px;
        margin-right: 10px;
      }

      .autoscroll {
        flex: 1;
        color: #eeca8a;
        height: 18px;
        overflow: hidden;

        .autoscroll-container {
          transition: transform 0.5s;
          width: 100%;
          .inner {
            height: 18px;
            line-height: 18px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            flex-wrap: nowrap;
          }
        }
      }
    }

    .ui-form {
      color: black;
      border-radius: 8px;
      background-color: #fff;
      overflow: hidden;

      .header {
        background-color: #ffecc1;
        padding: 14px 22px;
        display: flex;
        flex-direction: row;
        align-items: center;
      }

      .row {
        display: flex;
        flex-direction: row;
        height: 45px;
        padding: 15px 0px;
        margin: 0px 15px;
        border-bottom: 1px solid #ccc;
        box-sizing: border-box;

        &:last-child {
          border-bottom: none;
        }

        .label {
          text-align: left;
          width: 110px;
          color: #646566;
        }

        .icon {
          width: 14px;
          height: 14px;
        }
      }
    }

    .ui-agreement {
      display: flex;
      flex-direction: row;
      align-items: center;
      background-color: #fff;
      border-radius: 8px;
      padding: 10px;
      vertical-align: middle;

      .checkbox {
        width: 15px;
        height: 15px;
        margin-right: 10px;
        appearance: 2px;
      }

      .label {
        font-size: 12px;
        color: #787878;
      }

      .link {
        font-size: 12px;
        color: #1e96fa;
        text-decoration: none;
      }
    }
  }
}

.ui-cascade-container:active {
  transition: background-color 0.1s;
  background-color: rgba(0, 0, 0, 0.1);
}

.ui-cascade {
  height: 16px;
  width: 100%;
  background-image: url(../images/arrow-right.png);
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: right 5px center;

  .placeholder {
    color: #c8c9cc;
    user-select: none;
  }
}

.ui-input {
  border: none;
  outline: none;
  background-color: transparent;
  &::placeholder {
    color: #c8c9cc;
  }
}

.ui-button {
  border: none;
  outline: none;
  background-color: #ffecc1;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;

  &:active {
    background-color: #e5d4ad;
  }
  &:disabled {
    background-color: #ffecc15d;
  }
}

.ui-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transition: opacity 0.3s;

  &.hide {
    opacity: 0;
  }

  .ui-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    width: 60%;
    height: 60%;
    border-radius: 15px;
    margin: auto auto;
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    .header {
      background-color: #eeca8a;
      height: 55px;
      line-height: 55px;
      font-size: 16px;
      color: black;
      text-align: center;
    }

    .content {
      flex: 1;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 10px;

      p {
        margin: 3px;
        text-indent: 32px;
      }
      p:first-child {
        font-size: 16px;
        font-weight: bold;
        text-indent: 0;
      }
    }

    .button {
      height: 45px;
      border: none;
      outline: none;
      border-top: 1px solid #ccc;
      background-color: white;
      &:active {
        background-color: rgba(0, 0, 0, 0.1);
      }
    }
  }
}

.ui-phone-mask {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  transition: opacity 0.3s;

  &.hide {
    opacity: 0;
    .ui-select-phone-dialog {
      transform: translateY(70%);
    }
  }

  .ui-select-phone-dialog {
    position: fixed;
    left: 0;
    top: 30%;
    width: 100%;
    height: 70%;
    background-color: white;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s;

    .ui-controls {
      width: 100%;
      text-align: right;
      > * {
        margin-bottom: 10px;
        :last-child {
          margin-bottom: 0;
        }
      }
      button {
        &:active {
          background-color: transparent;
          opacity: 0.7;
        }
        img {
          width: 24px;
          height: 24px;
        }
      }
    }
    .ui-search {
      box-sizing: border-box;
      display: flex;
      flex-direction: row;
      align-items: center;
      height: 40px;
      line-height: 40px;
      background-color: #f7fffa;
      border-radius: 30px;
      margin-left: 20px;
      margin-right: 20px;
      padding-left: 15px;

      > * {
        margin-right: 5px;
        &:last-child {
          margin-right: 0;
        }
      }

      .ui-search-icon {
        width: 24px;
        height: 24px;
      }

      .ui-search-input {
        flex: 1;
        height: 100%;
        background-color: transparent;
      }
      .ui-search-btn {
        &:active {
          opacity: 0.7;
        }
        height: 100%;
        padding: 0 20px;
        background-color: #ffecc1;
        border-radius: 30px;
      }
    }

    .ui-list {
      padding: 20px 10px;
      display: flex;
      flex-direction: column;
      align-items: stretch;

      & > .row {
        width: 100%;
        display: flex;
        flex-direction: row;
        margin-bottom: 15px;
        justify-content: space-between;

        .item {
          background-color: #fde3df;
          border-radius: 10px;
          padding: 12px 25px;
          width: 37%;
          transition: background-color 0.1s;

          &:active {
            background-color: #fde3df98;
          }

          .number {
            font-size: 18px;
            font-weight: bold;
          }

          & > .row {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            .price {
              color: #999;
              text-decoration: line-through;
            }

            .free {
              color: #55140d;
              font-weight: bold;
            }
          }
        }
      }
    }

    .ui-change-btn {
      &:active {
        opacity: 0.7;
      }
      margin: 0 auto;
      text-align: center;
      background-color: #ffecc1;
      width: 200px;
      height: 40px;
      padding: 5px 20px;
      border-radius: 30px;
    }
  }
}

.ui-toast {
  padding: 5px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 30px;
  color: white;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.5s;
  z-index: 9999999;
}

.ui-loading {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.7);
  .ui-loading-enter {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    .ui-loading-label {
      color: white;
      font-size: 22px;
      margin-bottom: 0;
    }
    .ui-loading-icon {
      width: 70%;
    }
  }
  z-index: 9999999;
}
